package com.bananascrum.tests;

import java.util.concurrent.TimeUnit;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.htmlunit.HtmlUnitDriver;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.BeforeSuite;

public abstract class SeleniumBase {
	protected WebDriver driver;

	@BeforeSuite
	public void setUp() {
		driver = new FirefoxDriver();
		driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
	}

	/*
	 * @BeforeMethod public void clearCache() throws Exception {
	 * driver.manage().deleteAllCookies(); }
	 */

	@AfterSuite
	public void tearDown() throws Exception {
		driver.quit();
	}
}
